@import url(./common.css);
// 清除浮动
.clear::after,.clear::before{
    content: "";
    display: table;
}
.clear::after{
    clear: both;
}
.clearfix{
    *zoom: 1;
}

.main{
    background-color: #000;
    width: 10rem;
    .search{
        display: flex;
        width: 9.4rem;
        position: relative;
        input{
            margin: .2667rem 0;
            width: 9.4rem;
            height: 1.1333rem;
            border-radius: .1333rem;
            border: 0;
            font-size: .3333rem;
            padding-left: 1.1333rem;
            color: #8c8c8c;
        }
        input::placeholder{
            color: #c8c8c8;
        }
        // 放大镜图标
        img{
            height: .44rem;
            position: absolute;
            top: 50%;
            left: .36rem;
            transform: translate(0,-50%);
        }
    }
    .changeImgContainer{
        width: 9.4rem;
        height: 3rem;
        overflow: hidden;
        .changeImg{
            width: 9.4rem;
            margin: 0 auto;
            position: relative;
            ul{
                position: absolute;
                left: -9.4rem;
                display: flex;
                li{
                    img{
                        width: 9.4rem;
                    }
                }
            }
            // 小圆点
            .smallCircle{
                top: 2.6667rem;
                right: .1333rem;
                position: absolute;
                ol{
                    display: flex;
                    width: 2rem;
                    li{
                        cursor: pointer;
                        border-radius: .0667rem;
                        float: left;
                        width: .2667rem;
                        height: .1333rem;
                        background-color: rgba(255, 254, 254, 0.2);
                        transition: all .3s;
                        // 让过渡更自然
                    }
                    // 小白点
                    .bigWhiteLi{
                        width: .3333rem;
                        background-color: #fff;
                    }
                }
            }
        }
    }
    // 购物窗口
    .shopping{
        background-color: #fff;
        width: 9.4rem;
        display: flex;
        flex-flow: row wrap;
        justify-content: space-around;
        padding-top: .2667rem;
        // 每一个产品
        .productContainer{
            height: 5.3333rem;
            position: relative;
            width: 4.4rem;
            margin: .2133rem 0;
            border-radius: .1333rem;
            border: .0133rem solid #f4f4f4;
            img{
                width: 4.4rem;
            }
            .oldMoney{
                position: absolute;
                left: 1.4rem;
                bottom: .14rem;
                .line{
                    width: .7333rem;
                    height: .0133rem;
                    background-color: #666666;
                    position: absolute;
                    top: 51%;
                }
                p{
                    font-size: .1333rem;
                    color: #666666;
                    margin: 0;
                }
            }
            .shoppingCar{
                position: absolute;
                width: .6667rem;
                right: .2667rem;
                bottom: .14rem;
            }
        }
        h1{
            font-size: .3333rem;
            margin: .2267rem 0 0 .4rem;
            color: #000;
            display: inline-block;
        }
        p{
            display: inline-block;
            margin: .2267rem 0 0 .4rem;
            font-size: .2133rem;
            color: #999999;
        }
        .money{
            color: red;
            font-size: .2667rem;
            margin: .2267rem 0 0 .4rem;
        }
    }
}
